import { Module } from '@nestjs/common';
import { UserService } from './user.service';
import { UserController } from './user.controller';
import { JwtModule } from '@nestjs/jwt';
import { PrismaModule } from '../../prisma/prisma.module'; 
import { RedisModule } from '../redis/redis.module';  // 添加这行
@Module({
  imports: [PrismaModule,RedisModule,JwtModule.register({
    secret: process.env.JWT_SECRET,
    signOptions: { expiresIn: '7d' },
  })],
  controllers: [UserController],
  providers: [UserService],
})
export class UserModule {}
